{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(100000,)\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGR5JREFUeJzt3Xt0HeV57/Hvo62rZUuWbdmSLyAbc7GBYIOOcQwrhTgQ\nQtNCVlgUcqlpaZ3VJlmkzWkLyelJc0IbmqakbUqSQiBxaEqbACkcLuEYA4uQcIlMjG+ysTE2yBdJ\nttHF1sWS9nP+2GMQxlsj67b1jn+ftbT27Hdm73lenPw0euedGXN3REQkfHm5LkBEREaGAl1EJCEU\n6CIiCaFAFxFJCAW6iEhCKNBFRBJCgS4ikhAKdBGRhFCgi4gkRP5Y7mzatGleU1MzlrsUEQne2rVr\n97t7Zdx2YxroNTU11NXVjeUuRUSCZ2a7BrOdhlxERBJCgS4ikhAKdBGRhFCgi4gkhAJdRCQhFOgi\nIgmhQBcRSYggAn1NfSPfeWZ7rssQERnXggj0Z7Y28/1fvJ7rMkRExrUgAl1EROIFE+junusSRETG\ntdhAN7NiM3vJzF4xs01m9tWofYqZrTazbdFrxWgVaTZa3ywikhyDOULvBj7o7ucBi4ArzGwpcDOw\nxt1PB9ZE70VEJEdiA90zDkVvC6IfB64CVkXtq4CrR6XCo3WM5peLiCTAoMbQzSxlZuuAJmC1u78I\nzHD3vdEm+4AZo1QjGnEREYk3qEB39z53XwTMBpaY2TnHrHeyHESb2UozqzOzuubm5mEXLCIix3dC\ns1zcvQV4GrgCaDSzaoDotSnLZ+5091p3r62sjH3gxgD7HvJHRUROCoOZ5VJpZpOj5RLgMmAL8DCw\nItpsBfDQaBVpmuYiIhJrMI+gqwZWmVmKzC+An7j7I2b2PPATM7sR2AVcO4p1iohIjNhAd/f1wOLj\ntB8Alo9GUVnqGKtdiYgEKZgrR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P4e\n5e77gDfN7MyoaTmwmeT2+w1gqZlNiOpcDtST3P4eayz6+QRwuZlVRH8RXR61ZZeLEwxDOCFxJZnZ\nIa8BX851PSdY+8Vk/hxbD6yLfq4kM0a2BtgGPAlM6feZL0d93Up0JjxqrwU2Ruv+lXcuDCsGfgps\nJ3MmfV6u+x3VdQnvnBQ9Gfq7CKiL/q3/m8zMhMT2G/gqsCWq9V4yMzsS11/gPjLnCXrI/CV241j1\nE/jDqH078AdxtepKURGRhAhhyEVERAZBgS4ikhAKdBGRhFCgi4gkhAJdRCQhFOgiIgmhQBcRSQgF\nuohIQvx/kliCcw94/C8AAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7ff15c385450>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "#import sys\n",
    "#sys.path.insert(0,'/home/csunix/schtmt/NewFolder/caffe_May2017/python')\n",
    "import numpy as np\n",
    "import matplotlib.pyplot as plt\n",
    "#import caffe\n",
    "from matplotlib.backends.backend_pdf import PdfPages\n",
    "pp = PdfPages('multipage.pdf')\n",
    "# data = np.load('train_loss.npy')\n",
    "# np.shape(data['train_loss'])\n",
    "\n",
    "# data = np.load('train_loss_Sep2017.npy')\n",
    "# print data.shape\n",
    "# data = data[0:60000]\n",
    "# # print data[99]\n",
    "# # print data[199]\n",
    "# # print data[299]\n",
    "# # #print data[64999]\n",
    "# # print np.shape(data)\n",
    "# # print data.min()\n",
    "# plt.figure()\n",
    "# plt.clf()\n",
    "# plt.plot(np.arange(60000),data)\n",
    "# plt.show()\n",
    "\n",
    "# data = np.load('train_cross_entropy_loss_Sep2017.npy')\n",
    "data = np.load('train_loss_leakyReLU_Sep2017.npy')\n",
    "\n",
    "print data.shape\n",
    "data = data[0:100000]\n",
    "plt.figure()\n",
    "plt.clf()\n",
    "plt.plot(np.arange(100000),data)\n",
    "plt.show()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
